import { constantRoutes } from '@/router'

export default {
  namespaced: true, // 当前这个模块是一个子模块
  state: {
    menuList: [...constantRoutes]
  },
  mutations: {
    setMenuList(state, payload) {
      state.menuList = [...constantRoutes, ...payload]
    }
  }
}
